package com.example.demo1.config;

import com.example.demo1.filter.SignFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName Config
 * @Description TODO
 * @Author HDXYA
 * @Date 2020/4/7 19:56
 * @Version 1.0
 **/
@Configuration
public class Config {

//    @Bean(name="signFilter")
//    public SignFilter signFilter(){
//        return new SignFilter();
//    }
//
//    @Bean
//    public FilterRegistrationBean MyFilterRegistration() {
//        FilterRegistrationBean registration = new FilterRegistrationBean();
//        registration.setFilter(new SignFilter());
//        registration.addUrlPatterns("/*");
//        registration.setName("SignFilter");
//        registration.setEnabled(false);
//        registration.setOrder(1);//先后顺序
//        return registration;
//    }


}
